<!-- $Id: uploadManager.html 72 2011-03-29 03:28:50Z nicholasinlove1986@gmail.com $ -->
<include file="Public:pageheader"/>
<script type="text/javascript">
$(function(){
	$("a").click(function(){	
		$content = $(this).prev().html();		  
		if (window.clipboardData) { 
			window.clipboardData.setData("text",$content); 
			alert("- 复制成功\r\n- 直接在编辑器HTML代码环境下栏粘贴即可");
		}else{
			alert('- 你的浏览器不支持脚本复制或你拒绝了浏览器安全确认\r\n- 请尝试[Ctrl+C]复制代码');
		} 
	})
})

function confirmSubmit(form){
	var j = 0;
	for(var i=0; i<form.elements.length; i++){
		if(form.elements[i].name == "chkvalue[]"){
			if(form.elements[i].checked){
				j++;
			}
		}
	}
	if(j == 0){
		alert("请选择操作对象！");
		return false;
	}
	else{
		var r = confirm("- 你确定要删除选中的数据吗？");
		return r == true ? true : false;
	}
}
</script>
<present name='warning'>
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
  <li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" >{$warning}</li>
</ul>
</present>
<form method="post" action="__URL__/delFile" name="listForm" onSubmit="return confirmSubmit(this);">
<div class="list-div" id="listDiv">
<table id="list-table" cellpadding="3" cellspacing="1">
  <tbody>
  <tr>
    <th colspan="7">服务器上文件</th>
  </tr>
<tr>
    <th width="10%"><input type="checkbox" id="chkOpenAll" onclick="openAll(this)" />编号</th>
    <th>文件名</th>
	<th width="15%">快速粘贴</th>
    <th width="20%">时间</th>
	<th width="15%">大小</th>
	<th width="15%">下载数次</th>
  </tr>
  <volist name="list" id="vo">
  <tr>
    <td style="background-color: rgb(255, 255, 255);" class="first-cell" align="center"><input type="checkbox" id="chk1" name="chkvalue[]" onclick="openAll()" value="{$vo.file_name}" />{$vo.fid}</td>
    <td style="background-color: rgb(255, 255, 255);" align="left"><a href="__ROOT__/data/upload/{$vo.file_name}" title="右键另存为">{$vo.file_name}</a></td>
	<td style="background-color: rgb(255, 255, 255);" align="center"><div style="display:none;"><span class="download"><a href="{&blog_domain}data/upload/{$vo.file_name}" target="_blank">[点击下载]</a></span></div><a href="javascript:void(0)" title="点击复制">显式</a>&nbsp;&nbsp;|&nbsp;&nbsp;<div style="display:none;"><span class="download"><a href="{&blog_domain}upload/attachment/fid/{$vo.fid}" target="_blank">[点击下载]</a></span></div><a href="javascript:void(0)"   title="点击复制">安全</a></td>
    <td style="background-color: rgb(255, 255, 255);" align="center">{$vo.add_time}</td>
	<td style="background-color: rgb(255, 255, 255);" align="center">{$vo.file_size}</td>
	<td style="background-color: rgb(255, 255, 255);" align="center">{$vo.count}</td>
  </tr>
  </volist>
<tr>
<td colspan="7" align="center">
<input value="清除" id="btnSubmit" name="btnSubmit" class="button" disabled="true" type="submit">
<input type="hidden" name="act" value="do" /></td></tr>
  </tbody></table>
</div>
</form>
<include file="Public:pagefooter"/> 